package com.cg.managesystem.mapper;

import com.cg.managesystem.entity.LoginTicket;

import java.util.Date;

/**
 * Create tao on 2019/8/13
 */
public interface LoginTicketMapper {
    //是否已经有LoginTicket
    LoginTicket isLoginTicket(int id);

    //更新LoginTicket
    int updateLoginTicket(int id, Date expired, String ticket);

    //生成Ticket并插入数据库
    int addLoginTicket(LoginTicket loginTicket);
}
